/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package buslog;

/**
 *
 * @author degrave
 */
public class Administrator extends User {
    
    public Administrator(){
        super(1,"root","toor",1,1);//admin id = 1 name = root password = toor permission =1 idTable = 1;        
    }
    public void addEvent(int newid,String newdate,String newtime,String newtext) {
        Event event = new Event();
        event.id = newid;
        event.date = newdate;
        event.time= newtime;
        event.text = newtext;
        event.ownerCalendarId = this.tableId;
        event.pushToDB();      
    }
    public void deleteEvent(Event event) {
        event.removeFromDB();
    }
    public void newAdministrator() { //soon...
        
    }
    
    
}
